package com.intretech.umsin.common.excel.service;

import java.util.List;

/**
 * @version V1.0
 * @InterfaceName: ExcelService
 * @Description: ExcelService Excel导入/导出 对应提供的服务接口
 * @author: 李启联
 * @date: 2022-5-27 16:30
 * @Copyright: Copyright (c) 2022
 */
public interface ExcelService {

    /**
     * 导出EXCEL
     *
     * @param list
     * @param clazz
     * @param sheetName
     * @return
     * @throws Exception
     */
    byte[] exportExcel(List<?> list, Class clazz, String sheetName) throws Exception;

    /**
     * 下载模板
     *
     * @param sheetName
     * @param clazz
     * @return
     */
    byte[] exportExcelTemplate(String sheetName, Class clazz) throws Exception;


}
